package com.management.po;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zwh
 * @date 2021/10/28
 * 人员表
 */
public class User {
    /**
     * 人员编号
     */
    private int userId;
    /**
     * 人员姓名
     */
    private String userName;
    /**
     * 人员登录密码
     */
    private String userPassword;

    /**
     * 人员性别
     */
    private char userSex;

    /**
     * 人员生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date userBirthday;

    /**
     * 人员年龄
     */
    private int userAge;

    /**
     * 人员省份
     */
    private String userProvince;

    /**
     * 人员市区
     */
    private String userCity;

    /**
     * 人员电话
     */
    private String userTel;

    /**
     * 人员邮箱
     */
    private String userEmail;

    /**
     * 人员证件类型
     */
    private String userIdType;

    /**
     * 人员证件号
     */
    private String userIdNumber;

    /**
     * 头像链接
     */
    private String userPhoto;

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userSex=" + userSex +
                ", userBirthday=" + userBirthday +
                ", userAge=" + userAge +
                ", userProvince='" + userProvince + '\'' +
                ", userCity='" + userCity + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userIdType='" + userIdType + '\'' +
                ", userIdNumber='" + userIdNumber + '\'' +
                ", userPhoto='" + userPhoto + '\'' +
                '}';
    }

    public User() {
    }

    public User(int userId, String userName, String userPassword, char userSex, Date userBirthday, int userAge, String userProvince, String userCity, String userTel, String userEmail, String userIdType, String userIdNumber, String userPhoto) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userSex = userSex;
        this.userBirthday = userBirthday;
        this.userAge = userAge;
        this.userProvince = userProvince;
        this.userCity = userCity;
        this.userTel = userTel;
        this.userEmail = userEmail;
        this.userIdType = userIdType;
        this.userIdNumber = userIdNumber;
        this.userPhoto = userPhoto;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public char getUserSex() {
        return userSex;
    }

    public void setUserSex(char userSex) {
        this.userSex = userSex;
    }

    public Date getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(Date userBirthday) {
        this.userBirthday = userBirthday;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserIdType() {
        return userIdType;
    }

    public void setUserIdType(String userIdType) {
        this.userIdType = userIdType;
    }

    public String getUserIdNumber() {
        return userIdNumber;
    }

    public void setUserIdNumber(String userIdNumber) {
        this.userIdNumber = userIdNumber;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }
}
